package com.cls.yygh.cmn;

/**
 * @program: yygh
 * @description:
 * @author: LH
 * @create: 2021-11-15 17:06
 **/

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 数据字典API接口
 *
 * */
@FeignClient("service-cmn")
@Component
public interface DictFeignClient {

    /**
    * @Description: 获取数据字典名称
    * @Param: [parentDictCode, value]
    * @return: java.lang.String
    * @Author: LH
    * @Date: 2021/11/15
    */
    @PostMapping(value = "/admin/cmn/dict/getName/{parentDictCode}/{value}")
    String getName(@PathVariable("parentDictCode") String parentDictCode,
                   @PathVariable("value") String value);

    /**
    * @Description: 获取数据字典名称
    * @Param: [value]
    * @return: java.lang.String
    * @Author: LH
    * @Date: 2021/11/15
    */
    @PostMapping(value = "/admin/cmn/dict/getName/{value}")
    String getName(
            @PathVariable("value") String value);
}
